<?php
namespace Admin\Controller;
use Think\Controller;
class LoginController extends Controller {
		public function index(){
			
			$mod=D('admin');
			if(IS_POST){
				if($mod->create($_POST,4)){
					if($mod->login()){
						$this->success("登录成功",U("Admin/lst"));
					}else{
						$this->error("登 录失败！");
					}
				
			}else{
				$this->error($mod->getError());
			}
			return;
			
		}
		$this->display();
	}
	
	public function verify(){
		
		$Verify = new \Think\Verify();
		$Verify->length   = 4;
		$Verify->entry();
		
	}
	
	

		
		
		
		
}